﻿using Furion.SpecificationDocument;
using Photo.Core.Dtos.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Photo.Application.System.Role.Dto
{
    /// <summary>
    /// 角色保存input
    /// </summary>
    public class RoleSaveInput : PrimaryKey
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required]
        [MinLength(3, ErrorMessage = "角色名称长度不能少于3位")]
        public string Name { get; set; }
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsActive { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}
